package com.saurshaz.test.roo.trading.services;

import java.util.List;

import org.springframework.stereotype.Service;

import com.saurshaz.test.roo.trading.TradeType;

@Service(value = "tradeTypeService")
public class TradeTypeServiceImpl implements TradeTypeService {

	@Override
	public List<TradeType> getAllTradeTypes() {
		return TradeType.findAllTradeTypes();
	}

	@Override
	public TradeType createTradeType(TradeType tradeType) {
		tradeType.persist();
		return tradeType;
	}
}
